package com.twu.biblioteca;

public class User {
    private String username;
    private String password;
    private String name;
    private String email;
    private String number;

    public User(String username, String password, String name, String email, String number) {
        this.username = username;
        this.password = password;
        this.name = name;
        this.email = email;
        this.number = number;
    }

    public String displayUsername() {
        return username;
    }

    public boolean passwordEquals(String password) {
        return password.equals(this.password);
    }

    public String displayUserDetails() {
        return name + " | " + email + " | " + number;
    }
}